<h2>Register</h2>
<%= error_messages_for :user %>
<% form_for :user, :url => users_path do |f| %>
  <p>
    <label for="user_name">Name:</label>
    <%= f.text_field :name, :maxlength => 15, :size => 30 %>
  </p>
  <p>
    <label for="user_email">E-mail Address:</label>
    <%= f.text_field :email %>
  </p>
  <p>
    <label for="user_password">Password:</label>
    <%= f.password_field :password %>
  </p>
  <p>
    <label for="user_password_confirmation">Confirm Password:</label>
    <%= f.password_field :password_confirmation %>
  </p>
  <p>
    <label for="date_of_birth">Date of Birth:</label><br />
    <%# REFACTORME duplication with users/edit.rhtml %>
    <%= f.date_select :date_of_birth, :start_year => 1900, :end_year => Time.now.year %>
  </p>
  <p>
    <%= submit_tag 'Register' %> <%= cancel_button url_for(:controller => 'forums') %>
  </p>
<% end %>
